package com.atomjazz.basicgame;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class MainActivity extends Activity implements OnClickListener{

	Button btnMyView;
	Button btnOttugi;
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
       
        /*
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
        */
        setContentView(R.layout.activity_main);
        
        btnOttugi = (Button) findViewById(R.id.btnOttugi);
        btnOttugi.setOnClickListener(this);
        
        btnMyView = (Button) findViewById(R.id.btnView);
        btnMyView.setOnClickListener(this);
    }

	@Override
	public void onClick(View v) {
		Log.i("click", v.getId() +"");
		if(v.getId() == R.id.btnOttugi) {
			Log.i("test", "tttt");
			Intent intent = 
					new Intent(MainActivity.this, Ottugi.class);
			startActivity(intent);	
		} else if(v.getId() == R.id.btnView) {
			Intent intent = new Intent(MainActivity.this, RabbitMove.class);
			startActivity(intent);
		}
		
	}


}
